import request from '@/utils/request.js';
import { userTokenStore } from '@/stores/token.js';

//家长列表查询
export const parentListService = (params)=>{
    const tokenStore = userTokenStore();
    const token = tokenStore.token;
    const requestConfig = {
        params:params,
        headers:{
            'token':token
        }
    };
    return request.get('/parent/page',requestConfig)
}

//学生列表查询
export const studentListService = (params)=>{
    const tokenStore = userTokenStore();
    const token = tokenStore.token;
    const requestConfig = {
        params:params,
        headers:{
            'token':token
        }
    };
    return request.get('/student/page',requestConfig)
}